<{include file="public/header.html"}>

<div class="dialogue overhide">
	<div class="title-big">
		私信对话窗口
	</div>
	<div class="dialogue-box">
		<div class="dialogue-head">
			<div class="p20">
                            <a href="<{$dialog_user['space_url']}>" class="header fl overhide">
					<img src="<{$dialog_user['head_img']}>"/>
				</a>
				<div class="fl ml20">
                                    <a href="<{$dialog_user['space_url']}>" class="name"><{$dialog_user['nickname']}></a>
					<p class="signature"><{$dialog_user['signature']}></p>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="dialogue-con plr20 pt20 pb70">
                    <{if $message_counts==10}>
                    <a href="javascript:void(0);" class="dialogue-all blue" id="dialogue-more" data-action-url="<{$load_more_url}>">查看更多</a>
                    <{/if}>
                    <ul id="message-dialog-box" class="mb30 dialogue-content-box">
                        <{foreach from=$message_list item=val}>
                        <{if $val['time_mark']}>
                            <p class="dialogue-time tc">- <{$val['time_mark']}>  -</p>
                        <{/if}>    
                        <{if $val['is_self']}>
                        <li class="dialogue-right" data-timestamp="<{$val['create_time']}>">
                                <div class="header fr ml10"><img src="<{$bbs_user_info['head_img']}>"/></div>
                                <div class="dialogue-txt fr"><{$val['content']}></div>
                        </li>
                        <{else}>
                        <li class="dialogue-left" data-timestamp="<{$val['create_time']}>">
                                <div class="header fl mr10">
                                        <img src="<{$dialog_user['head_img']}>"/>
                                </div>
                                <div class="dialogue-txt fl"><{$val['content']}></div>
                        </li>
                        <{/if}>
                        <{/foreach}>
                    </ul>
                    <div class="input-box">
                        <div class="input-box">
                                <input type="text" id="dialog-messge" class="fl" value="" placeholder="输入内容"/>
                                <input type="hidden" id="dialog_action" value="users_send_msg"/>
                                <button id="send-message-btn" class="fr" data-disvilad-val="发送中...">发送(Enter)</button>
                                <div class="clear"></div>
                        </div>
                    </div>
		</div>
	</div>
	
</div>

<!--底部-->
<script type="text/javascript" src="<{$style_dir}>/js/dialog.widget.js"></script>
<{include file="public/footer.html"}>